package com.lancoo.znbkxx.teacher.aibkTestCoach.checkKnowledgePoint

import com.lancoo.znbkxx.teacher.aibkTestCoach.kBase.KBaseRecyclerViewHolder
import android.content.Context
import android.graphics.Typeface
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.lancoo.znbkxx.teacher.aibkTestCoach.kBase.KBaseRecyclerAdapter
import com.lancoo.znbkxx.teacher.R
import kotlinx.android.synthetic.main.activity_paper_basic.*
import kotlinx.android.synthetic.main.aibk_adapter_item_empty_view.view.*

/**
 * auther: 王国龙
 *  Date：
 * describe:
 */
class AibkAdapterEmptyView(val context:Context, val emptyInfor:String): KBaseRecyclerAdapter() {

    override fun getHolderView(parent: ViewGroup?, position: Int): View {
        return LayoutInflater.from(context)
            .inflate(R.layout.aibk_adapter_item_empty_view, parent, false)
    }

    override fun onBindViewHolder(holder: KBaseRecyclerViewHolder, position: Int) {
        holder.convertView!!.TvEmptyKnowledgeMessage.text = emptyInfor
        holder.convertView!!.TvEmptyKnowledgeMessage.typeface = Typeface.createFromAsset(context.assets, "fonts/happy.ttf")
    }

    override fun getItemCount(): Int {
        return 1
    }

}